﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="TeacherSrhForm.aspx.cs" Inherits="App_Master_TeacherSrhForm" Title="教师检索" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="table_border_line">
        <tr>
            <th colspan="4" align="left" style="text-align: left;">

                <script language="javascript">
                    (new TitleBar('SearchBar', '检索条件')).showBar();
                </script>

            </th>
        </tr>
        <tr>
            <td style="height: 25px; width: 300px;"></td>
            <td style="width: 60px; height: 25px">
            </td>
            <td style="width: 67px; height: 25px">
            </td>
            <td>
            </td>
        </tr>
        <tr style="display:none;">
            <td style="width: 400px; height: 25px"></td>
            <td style="width: 100px; height: 25px">
                教师编号：</td>
            <td style="width: 180px;height: 25px">
                <asp:TextBox ID="txtId" runat="server"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="width: 400px; height: 25px">
            </td>
            <td style="width: 100px; height: 25px">
                教师姓名：</td>
            <td style="width: 180px;height: 25px">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="width: 400px; height: 25px">
            </td>
            <td style="width: 100px; height: 25px">
                性别：</td>
            <td style="width: 180px;height: 25px">
                <asp:DropDownList ID="sex" runat="server" DataTextField="Content" DataValueField="DictNo" Width="100px">
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="width: 400px; height: 25px">
            </td>
            <td style="width: 100px; height: 25px">
                教师学历：</td>
            <td style="width: 180px; height: 25px">
                <asp:TextBox ID="XueLi" runat="server"></asp:TextBox>
            </td>
            <td style="height: 25px">
            </td>
        </tr>
        <tr>
            <td style="width: 400px; height: 25px">
            </td>
            <td style="width: 100px; height: 25px">
            </td>
            <td style="width: 180px;height: 25px">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="width: 400px; height: 25px">
            </td>
            <td style="width: 100px; height: 25px">
            </td>
            <td style="width: 180px;height: 25px">
                <asp:Button ID="btnSeach" runat="server" CssClass="button"
                    Text="检 索" Width="60px" OnClick="btnSeach_Click" />
                    &nbsp;
                <asp:Button ID="txtAdd" runat="server" CssClass="button"
                    Text="新 建" Width="60px" OnClick="txtAdd_Click" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="height: 20px">
                            <script language="javascript">
                    (new TitleBar('SearchBar', '检索结果')).showBar();
                </script>
            </td>
        </tr>
    </table>
    <br />
    <table class="table_border_line">
    <tr>
    <td>
        <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CssClass="GridView_table" DataKeyNames="TeacherId" Width="100%" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowDeleting="viewSrhRst_RowDeleting" OnRowEditing="viewSrhRst_RowEditing">
            <Columns>
                <asp:BoundField DataField="TeacherName" HeaderText="教师姓名">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="0px" />
                </asp:BoundField>
                <asp:BoundField DataField="Sex" HeaderText="教师性别">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                </asp:BoundField>
                <asp:BoundField DataField="TeacherXueli" HeaderText="教师学历">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                </asp:BoundField>
                <asp:CommandField HeaderText="详细" ShowEditButton="True"  ButtonType="Image" EditImageUrl="~/images/info.gif">
                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                                        <ItemStyle CssClass="GridView_item_center" />
                </asp:CommandField>                        
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="60px" />
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/images/delete.jpg" Text="Delete" OnClientClick="javascript:return window.confirm('是否删除该条信息？')"/>
                    </ItemTemplate>
                    </asp:TemplateField>
            </Columns>
            <PagerStyle HorizontalAlign="Right" />
        </asp:GridView>
    </td>
    </tr>
    </table>
</asp:Content>
